package com.rpframework.module.common.domain;


import com.rpframework.module.common.bottom.entity.enums.SourceType;

/**
 * 用户登陆信息
 *
 * @author 刘兴
 */
public class UserLogin {
    /**
     * 用户主键
     */
    private String userId;

    public UserLogin() {
    }

    public UserLogin(String userId, SourceType source) {
        this.userId = userId;
        this.source = source;
    }

    public UserLogin(String userId, SourceType source, String token) {
        this.userId = userId;
        this.source = source;
        this.token = token;

    }

    /**
     * 登陆来源
     */

    private SourceType source;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public SourceType getSource() {
        return source;
    }

    public void setSource(SourceType source) {
        this.source = source;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    /**
     * 令牌
     */
    private String token;
}
